using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace SkypeStudio.InstallUtill
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                string reg32 = string.Format("{0}\\regsvr32.exe", Environment.SystemDirectory);

                System.Diagnostics.ProcessStartInfo processStart = new System.Diagnostics.ProcessStartInfo(reg32, "/s skypecontacts.ocx");
                processStart.WorkingDirectory = Environment.CurrentDirectory;
                System.Diagnostics.Process.Start(processStart);
                System.Threading.Thread.Sleep(100);

                System.Diagnostics.ProcessStartInfo processStart2 = new System.Diagnostics.ProcessStartInfo(reg32, "/s skype4com.dll");
                processStart2.WorkingDirectory = Environment.CurrentDirectory;
                System.Diagnostics.Process.Start(processStart2);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + ex.StackTrace);
            }
        }
    }
}
